projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
232e313
)
rendernodeparser: Handle resolving NULL urls
author
Timm Bäder
<mail@baedert.org>
Tue, 19 Nov 2019 08:37:03 +0000
(09:37 +0100)
committer
Timm Bäder
<mail@baedert.org>
Tue, 19 Nov 2019 08:37:03 +0000
(09:37 +0100)
gsk/gskrendernodeparser.c
patch
|
blob
|
history
diff --git
a/gsk/gskrendernodeparser.c
b/gsk/gskrendernodeparser.c
index 328a2448fc758e3655e22723b9a7b5ecd23e282d..04a690935f87d0c1dc8358fcf1f125275a4f3fdf 100644
(file)
--- a/
gsk/gskrendernodeparser.c
+++ b/
gsk/gskrendernodeparser.c
@@
-109,8
+109,16
@@
parse_texture (GtkCssParser *parser,
GFile *file;
file = gtk_css_parser_resolve_url (parser, url);
- texture = gdk_texture_new_from_file (file, &error);
- g_object_unref (file);
+
+ if (file)
+ {
+ texture = gdk_texture_new_from_file (file, &error);
+ g_object_unref (file);
+ }
+ else
+ {
+ texture = NULL;
+ }
}
g_free (scheme);